#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "qcustomplot.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pb_g2plot_clicked();

    void on_pb_g2plot_2_clicked();

private:
    Ui::MainWindow *ui;

    double stX;
    double stY;
    double edX;
    double edY;
    double i,j,r;
    double i1,j1;
//    bool rapidmv,cw,ccw;
    int mode;
    void drawLine(double startx,double starty,double endx,double endy);
    void drawArc(double startx,double starty,double i,double j,double theta1,double theta2,double radius);
    void drawccwArc(double startx,double starty,double i,double j,double theta1,double theta2,double radius);
};
#endif // MAINWINDOW_H
